fix(specifiers): correct Trance Disorder possession structure (ICD-11 6B62/6B63)#695
Conversation
Source verification (issue #693) found the catalogue modelled Trance Disorder with a "with/without possession" specifier, which misrepresents ICD-11: possession is not a qualifier of one disorder but a SEPARATE diagnosis — 6B62 Trance disorder (no replacing identity) vs 6B63 Possession trance disorder. Reframe the possession item on both Trance Disorder nodes (Dissociative Disorders + ICD-11 Specifics categories) so its label and context state the two distinct ICD-11 diagnoses instead of a with/without specifier, and update icd11Context accordingly. Item counts are unchanged, so stats stay consistent. The parallel Dissociative Identity Disorder "with/without possession form" is intentionally left as-is — ICD-11 6B64 genuinely covers both forms within one diagnosis. Update the possession regression test to assert the corrected framing (DID covers both forms; Trance points to the separate 6B63 diagnosis). Relates to #693. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01WmtoUEnX7Pe4yipAmPFSiG
|
This pull request has been ignored for the connected project Preview Branches by Supabase. |
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (3)
📝 WalkthroughWalkthroughUpdated Trance Disorder ICD-11 content and search labels to distinguish trance disorder (6B62) from possession trance disorder (6B63), and revised tests to validate separate diagnosis wording while preserving Dissociative Identity Disorder possession coverage. ChangesTrance Disorder ICD-11 Coding
Estimated code review effort: 2 (Simple) | ~10 minutes Possibly related issues
Possibly related PRs
Suggested reviewers: 🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Comment |
Summary
Implements the actionable structural item from #693. The source-verification pass found the specifier catalogue modelled Trance Disorder with a "with/without possession" specifier, which misrepresents ICD-11: possession is not a qualifier of a single disorder — ICD-11 uses two separate diagnoses, 6B62 Trance disorder (dissociative state without a replacing identity) and 6B63 Possession trance disorder (identity replaced by an external identity/spirit/power).
This reframes the possession item on both Trance Disorder nodes (the Dissociative Disorders category and the ICD-11 Specifics category) so its label and
icd11Contextstate the two distinct ICD-11 diagnoses instead of a with/without qualifier:icd11Contextnow describes 6B62 and points to 6B63 as the separate diagnosis.Item counts are unchanged, so the stats block and index↔content sync are untouched (still 585 items, 0 displayed definitions).
Intentionally NOT changed: the parallel Dissociative Identity Disorder "with/without possession form" — that one is correct, because ICD-11 6B64 genuinely encompasses both possession and non-possession forms within a single diagnosis. The verification pass confirmed the contradiction is specific to Trance Disorder.
Verification
JSON valid; Prettier clean; index in sync (585 items, 0 generated definitions).
Vitest:
tests/specifiers-content.test.ts+tests/specifiers.test.ts→ 28/28 pass. The possession regression test now asserts the corrected framing (DID covers both forms; Trance points to the separate 6B63 diagnosis).npm run verify:pr-localnpm run verify:ui— a specifier label/context changedClinical Governance Preflight
Clinical KB Database/sjrfecxgysukkwxsowpy).Notes
Relates to #693. Follows #656, #691.
🤖 Generated with Claude Code
Generated by Claude Code
Summary by CodeRabbit